﻿import request from '/@/utils/request';
enum Api {
  AddSysPageOptionConfig = '/api/sysPageOptionConfig/add',
  DeleteSysPageOptionConfig = '/api/sysPageOptionConfig/delete',
  UpdateSysPageOptionConfig = '/api/sysPageOptionConfig/update',
  SaveSysPageOptionConfig = '/api/sysPageOptionConfig/save',
  PageSysPageOptionConfig = '/api/sysPageOptionConfig/page',
  ExportSysPageOptionConfig = 'api/sysPageOptionConfig/export',
}

//导出页面统一配置
export const exportSysPageOptionConfigExcel=(params?:any)=>
	request({
		url:Api.ExportSysPageOptionConfig,
		method:'post',
		data:params,
		responseType: 'blob'
	});

// 增加页面统一配置
export const addSysPageOptionConfig = (params?: any) =>
	request({
		url: Api.AddSysPageOptionConfig,
		method: 'post',
		data: params,
	});

// 删除页面统一配置
export const deleteSysPageOptionConfig = (params?: any) => 
	request({
			url: Api.DeleteSysPageOptionConfig,
			method: 'post',
			data: params,
		});

// 编辑页面统一配置
export const updateSysPageOptionConfig = (params?: any) => 
	request({
			url: Api.UpdateSysPageOptionConfig,
			method: 'post',
			data: params,
		});

// 保存页面统一配置
export const saveSysPageOptionConfig = (params?: any) => 
	request({
			url: Api.SaveSysPageOptionConfig,
			method: 'post',
			data: params,
		});

// 分页查询页面统一配置
export const pageSysPageOptionConfig = (params?: any) => 
	request({
			url: Api.PageSysPageOptionConfig,
			method: 'post',
			data: params,
		});


